//
//  ViewController.m
//  iOSLock
//
//  Created by 崔博 on 2018/7/24.
//  Copyright © 2018年 崔博. All rights reserved.
//

#import "ViewController.h"
#import "OSSpinLockDemo.h"
#import "MutexDemo.h"
@interface ViewController ()
@property (nonatomic, assign) int ticketsCount;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    BaseDeomo * demo = [[MutexDemo alloc] init];
    [demo saleTicket];
    [demo moneyTest];
    
}


- (int)test
{
    int a = 10;
    int b = 20;
    int c = 30;
    return c;
}

@end
